package com.deyuanyun.pic.settings.mapper.base;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.deyuanyun.pic.settings.domain.base.Code;
import com.deyuanyun.pic.settings.domain.base.CodeExample;
import com.github.pagehelper.Page;

public interface CodeMapper {
    int deleteByPrimaryKey(String id);

    int insert(Code record);

    int insertSelective(Code record);

    Code selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Code record);

    int updateByPrimaryKey(Code record);

    List<Code> loadAll();

    Page<Code> selectByIdPath(String idPath);

    int deleteByIdPath(String idPath);

    Page<Code> selectList(Code code);
    
    List<HashMap> selectListAll(@Param("majorCode") String majorCode);
    
    List<Code> queryCodeList(String majorCode);

    /**
     * 根据条件查询记录集
     */
    List<Code> selectByExample(CodeExample example);

}